#pragma once

#include <map>
#include <mutex>
#include <functional>
#include "Util/util.h"
#include "jsoncpp/json.h"
#include "Network/Buffer.h"

using namespace std;
using namespace Fdt;
class DiskServer{
public:
    static DiskServer *instance();
    bool GetDiskSpace(const Json::Value &request, const Fdt::BufferMap::Ptr &inMap, Json::Value &response, Fdt::BufferMap::Ptr &outBuffer);
private:
    DiskServer();
    ~DiskServer();
    void RegistRPC();

private:
    static DiskServer *sm_DiskServer;
    static mutex sm_instanceLock;
};
